package com.dbl.oms.platform.persistence.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.dbl.oms.common.model.SuperEntity;

/**
 * <p>
 * 字典表
 * </p>
 *
 * @author Ladd
 * @since 2017-12-15
 */
@TableName("sys_dict")
public class SysDict extends SuperEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	@TableField("dict_code")
	private String dictCode;
    /**
     * 名称
     */
	@TableField("dict_name")
	private String dictName;
	@TableField("dict_value")
	private String dictValue;
    /**
     * 提示
     */
	private String tips;
    /**
     * 排序
     */
	@TableField("order_num")
	private Integer orderNum;
    /**
     * 父级字典
     */
	@TableField("p_dict_id")
	private Integer pDictId;
    /**
     * 创建人
     */
	@TableField("create_by")
	private String createBy;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;


	public Integer getId() {
		return id;
	}

	public SysDict setId(Integer id) {
		this.id = id;
		return this;
	}

	public String getDictCode() {
		return dictCode;
	}

	public SysDict setDictCode(String dictCode) {
		this.dictCode = dictCode;
		return this;
	}

	public String getDictName() {
		return dictName;
	}

	public SysDict setDictName(String dictName) {
		this.dictName = dictName;
		return this;
	}

	public String getDictValue() {
		return dictValue;
	}

	public SysDict setDictValue(String dictValue) {
		this.dictValue = dictValue;
		return this;
	}

	public String getTips() {
		return tips;
	}

	public SysDict setTips(String tips) {
		this.tips = tips;
		return this;
	}

	public Integer getOrderNum() {
		return orderNum;
	}

	public SysDict setOrderNum(Integer orderNum) {
		this.orderNum = orderNum;
		return this;
	}

	public Integer getpDictId() {
		return pDictId;
	}

	public SysDict setpDictId(Integer pDictId) {
		this.pDictId = pDictId;
		return this;
	}

	public String getCreateBy() {
		return createBy;
	}

	public SysDict setCreateBy(String createBy) {
		this.createBy = createBy;
		return this;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public SysDict setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}

	public static final String ID = "id";

	public static final String DICT_CODE = "dict_code";

	public static final String DICT_NAME = "dict_name";

	public static final String DICT_VALUE = "dict_value";

	public static final String TIPS = "tips";

	public static final String ORDER_NUM = "order_num";

	public static final String P_DICT_ID = "p_dict_id";

	public static final String CREATE_BY = "create_by";

	public static final String CREATE_TIME = "create_time";

	@Override
	public String toString() {
		return "SysDict{" +
			", id=" + id +
			", dictCode=" + dictCode +
			", dictName=" + dictName +
			", dictValue=" + dictValue +
			", tips=" + tips +
			", orderNum=" + orderNum +
			", pDictId=" + pDictId +
			", createBy=" + createBy +
			", createTime=" + createTime +
			"}";
	}
}
